/**
* 作者 ：食草狂魔
*
* 日期 ：2017/11/17
*
* 描述 ：模板管理 - 模板模块组件
*/
<template>
  <div class="templateModule">
    <el-row>
      <el-col class="moduleTitle">{{moduleInfo.title}}</el-col>
    </el-row>
    <el-row>
      <el-col class="buttonList">
        <el-button class="moduleButton" v-if="item.xtype==='button'" v-for="item in moduleInfo.buttons" size="medium" @click="item.onClick" style="line-height: 0.5rem;">{{item.buttonText}}</el-button>
        <el-button type="text" v-if="item.xtype==='link'" v-for="item in moduleInfo.buttons" style="color: red;" @click="item.onClick">{{item.buttonText}}</el-button>
      </el-col>
    </el-row>
    <el-row>
      <el-col class="remarkRow">
        <p class="remarkInfo">{{moduleInfo.remark}}</p>
      </el-col>
    </el-row>
  </div>
</template>
<script>
  export default {
    props: ['moduleInfo'],
    name: 'templateModule'
  }
</script>
<style>
  .templateModule{
    background-color: #d4eefb;
    padding-top: 15%;
    padding-bottom: 15%;
  }
  .moduleTitle{
    font-size: 3rem;
    line-height: 30px;
    font-weight: bolder;
  }
  .buttonList{
    margin-top: 5%;
    line-height: 30px;
  }
  .remarkRow{
    height: 48px;
  }
  .remarkInfo{
    width: 90%;
    margin: 5% auto;
    line-height: 28px;
    font-size: 1.4rem;
  }
  .templateModule .buttonList .moduleButton{
    width: 30%;
  }
</style>
